home *** CD-ROM | disk | FTP | other *** search
/ PC Direct 1998 August / PC Direct August 1998.iso / S / powerj / Product / hpp.z / WWIZARD.HPP < prev   
Encoding:
C/C++ Source or Header  |  1997-11-25  |  2.6 KB  |  94 lines

  1. /*************************************************************************
  2.  *
  3.  * WWizard -- Wrapper for the Windows 95 Property Sheet Wizard control.
  4.  *
  5.  *
  6.  *   Events:
  7.  *
  8.  *************************************************************************/
  9.  
  10. #ifndef _WWIZARD_HPP_INCLUDED
  11. #define _WWIZARD_HPP_INCLUDED
  12. #pragma once
  13.  
  14. #ifndef _WNO_PRAGMA_PUSH
  15. #pragma pack(push,8);
  16. #pragma enum int;
  17. #endif
  18.  
  19. #ifndef _WPROPSHT_HPP_INCLUDED
  20. #  include "wpropsht.hpp"
  21. #endif
  22.  
  23. enum WWizardButton {
  24.     WWBBack,
  25.     WWBNext,
  26.     WWBFinish
  27. };
  28.  
  29. class WCMCLASS WWizard : public WPropertySheet {
  30.     WDeclareSubclass( WWizard, WPropertySheet );
  31.  
  32.     friend class WPropertySheetItem;
  33.  
  34.     public:
  35.  
  36.         /**********************************************************
  37.          * Constructors and destructors
  38.          *********************************************************/
  39.  
  40.         WWizard( WBool hasHelp=FALSE, WIcon * image=NULL,
  41.                  const WChar * text=NULL, WBool isPropertyTitle=FALSE,
  42.                  WInt startItemIndex=0, WPropertySheetInfo * infoArray=NULL,
  43.                  WInt numItems=0, WBool autoButtonHandling=TRUE );
  44.     
  45.         ~WWizard();
  46.  
  47.         /**********************************************************
  48.          * Properties
  49.          *********************************************************/
  50.  
  51.         // AutoButtonHandling
  52.  
  53.         WBool GetAutoButtonHandling();
  54.         WBool SetAutoButtonHandling( WBool autoButtonHandling );
  55.  
  56.         /**********************************************************
  57.          * Methods
  58.          *********************************************************/
  59.  
  60.         // EnableButton
  61.  
  62.         void EnableButton( WWizardButton buttonToEnable, WBool enable );
  63.  
  64.         // PressButton
  65.  
  66.         WBool PressButton( WWizardButton buttonToSimulate );
  67.  
  68.         /**********************************************************
  69.          * Overrides
  70.          *********************************************************/
  71.  
  72.         // ChangeCancelToClose
  73.  
  74.         virtual WBool ChangeCancelToClose();
  75.  
  76.         /**********************************************************
  77.          * Data members
  78.          *********************************************************/
  79.  
  80.     private:
  81.  
  82.         WBool                           _backEnabled;
  83.         WBool                           _nextEnabled;
  84.         WBool                           _finishEnabled;
  85.         WBool                           _autoButtonHandling;
  86. };
  87.  
  88. #ifndef _WNO_PRAGMA_PUSH
  89. #pragma enum pop;
  90. #pragma pack(pop);
  91. #endif
  92.  
  93. #endif // _WWIZARD_HPP_INCLUDED
  94.